package com.server.commons.huawei_obs;

import com.server.model.all.enums.BucketNameEnum;
import com.server.commons.huawei_obs.base.BaseHuaweiOBSFile;
import com.server.commons.huawei_obs.config.HuaweiOBSConfig;
import com.server.commons.huawei_obs.constant.HuaweiOBSPolicyConstant;
import com.server.commons.huawei_obs.enums.HuaweiOBSLocationEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 主图
 * @author LXC
 * @date 2022/5/7 19:12
 */
@Component
@Slf4j
public class MainHuaweiOBSFile extends BaseHuaweiOBSFile {

    @Resource
    private HuaweiOBSConfig huaweiOBSConfig;

    //设置桶名
    @Override
    public BucketNameEnum getBucketNameEnum() {
        return BucketNameEnum.MAIN_IMAGE;
    }

    @Override
    public String getPolicy() {
        return HuaweiOBSPolicyConstant.PRIVATE;
    }


    @Override
    public HuaweiOBSLocationEnum getHuaweiOBSLocationEnum() {
        return HuaweiOBSLocationEnum.CN_NORTH4;
    }
}
